package com.gyx.lottery.service.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum UserIdentifyEnum {
    ADMIN("管理员"),
    NORMAL("普通用户");
    String message;
   public static  UserIdentifyEnum forName(String name){
       for(UserIdentifyEnum userIdentifyEnum:UserIdentifyEnum.values()){
           if(userIdentifyEnum.name().equalsIgnoreCase(name)){
               return userIdentifyEnum;
           }
       }
       return null;
   }

}
